package com.hut.oa.model.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hut.oa.model.bean.FileManage;

@Repository
public interface FilemanageMapper {

	//List<Map<String, Object>> selectbytype(@Param("type")String type,@Param("id")String id);
	
	List<Map<String, Object>> selectfilebyid(@Param("id")Long id);
	
	List<Map<String, Object>> selectfolderbyid(@Param("id")Long id);
	
	Integer deletebyfileid(@Param("fileid")Long id);
	
	Integer deletebydirid(@Param("dirid")Long id);
}
